import request from '@/utils/request'

// 查询获奖作品列表
export function listWork(query) {
  return request({
    url: '/business/awardWork/list',
    method: 'get',
    params: query
  })
}

// 查询获奖作品详细
export function getWork(id) {
  return request({
    url: '/business/awardWork/' + id,
    method: 'get'
  })
}

// 新增获奖作品
export function addWork(data) {
  return request({
    url: '/business/awardWork',
    method: 'post',
    data: data
  })
}

// 修改获奖作品
export function updateWork(data) {
  return request({
    url: '/business/awardWork',
    method: 'put',
    data: data
  })
}
export function check(data) {
  return request({
    url: '/business/awardWork/check',
    method: 'put',
    data: data
  })
}



// 删除获奖作品
export function delWork(id) {
  return request({
    url: '/business/awardWork/' + id,
    method: 'delete'
  })
}
